<!DOCTYPE html>

<html>
    <head>
        <title>Editar Turma</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="css/bootstrap.css" rel="stylesheet">
        <link href="css/bootstrap-responsive.css" rel="stylesheet">
  	<link href="css/stilo.css" rel="stylesheet">
        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="js/html5shiv.js"></script>
        <![endif]-->
    </head>
    <body>
       <div class="container">
           <?php include "topo.html"; ?>
           <?php include "menu.php"; ?>
           
           <!------------------------------------------Inicio do Conteudo------------------------------------->
		<section>
			<div id="conteudo">
				<div class="row-fluid">
					<div class="span12">
						<div class="titulo">
                                                    <p><b>Editar Turma</b></p>
						</div>
						<div class="bordas">
                                                    <div>
                                                        <div> <p class="alert-info">Os Campos com * são Obrigatorios</p></div>
                                                        <form class="form-horizontal turma" method="POST" action="index.php?pg=AtualizarTurma">
                                                    <fieldset>
                                                        
                                                    <!-- Text input-->
                                                    <div class="control-group">
                                                      <div class="controls">
                                                          <input id="idturma" name="idturma" value="<?php echo $idturma; ?>" placeholder="" class="input-large" type="hidden">
                                                      </div>
                                                    </div>


                                                    <!-- Select Basic -->
                                                    <div class="control-group">
                                                      <label class="control-label" for="serie">Selecione a Série*</label>
                                                      <div class="controls">
                                                        <select id="serie" name="serie" class="input-large">
                                                            <option value="<?php echo $turma->idserie; ?>"><?php echo $turma->ser_nome; ?></option>
                                                          <?php 
                                                          foreach ($consulta as $con) {
                                                              echo'
                                                               <option value="'.$con->id.'">'.$con->ser_nome.'</option>';
                                                          }
                                                         
                                                          ?>
                                                        </select>
                                                      </div>
                                                    </div>

                                                    <!-- Select Basic -->
                                                    <div class="control-group">
                                                      <label class="control-label" for="anoletivo">Selecione o Ano Letivo*</label>
                                                      <div class="controls">
                                                        <select id="anoletivo" name="anoletivo" class="input-large">
                                                            <option value="<?php echo $turma->idanoletivo; ?>"><?php echo $turma->al_ano; ?></option>
                                                           <?php 
                                                          foreach ($mostrar as $mo) {
                                                              echo'
                                                               <option value="'.$mo->id.'">'.$mo->al_ano.'</option>';
                                                          }
                                                         
                                                          ?>
                                                        </select>
                                                      </div>
                                                    </div>

                                                    <!-- Text input-->
                                                    <div class="control-group">
                                                      <label class="control-label" for="turma">Digite o Letra da Turma*</label>
                                                      <div class="controls">
                                                          <input id="turma" name="turma" value="<?php echo $turma->tur_nome; ?>" placeholder="" class="input-large" type="text">

                                                      </div>
                                                    </div>

                                                    <!-- Button -->
                                                    <div class="control-group">
                                                      <label class="control-label" for="criar"></label>
                                                      <div class="controls">
                                                        <button id="criar" name="criar" class="btn btn-primary">Criar</button>
                                                      </div>
                                                    </div>

                                                    </fieldset>
                                                    </form>                                                       
  
                                                    </div>
						</div>
					</div>	
				</div>
			</div> <!-- Fim da linha conteudo -->
		</section><!-- ----------------------------------------fim do Conteudo----------------------------------- -->

           
           <?php include "rodape.html"; ?>
           
           
       </div><!-- fim da div container -->    
        
        
    <!-- Arquivos Javascripts ================================================== -->
    <script src="js/jquery-1.10.2.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.validate.js"></script>
    <script src="js/validaformturma.js"></script>
    </body>
</html>

